// 回调函数

//a.有名方法传值
function callFunction (fun,name){
    fun(name);
}

var sayBye = function(name){
    console.log(name+"yexuan");
}

callFunction(sayBye,'hello');

//b.匿名方法传值
function callFunction (fun,name){
    fun(name);
}

callFunction(function(name){
    console.log(name+"ytt");
},'hello');